<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div class="pageContent">
    <form action="/manage/services/switches/doUpdate" method="post"
          onsubmit="return validateCallback(this,dialogAjaxDone);">
        <div class="pageFormContent" layoutH="56">
            <p>
                <label>服务名称：</label>
                <input type="hidden" name="id" value="${serviceSwitch.id}">
                <input type="text" name="serviceName" value="${serviceSwitch.serviceName}" class="required"
                       maxlength="100">
            </p>

            <div class="divider"></div>
            <p>
                <label>服务接口ＵＲＩ：</label>
                <input type="text" name="serviceURI" value="${serviceSwitch.serviceURI}" class="required"
                       maxlength="100">
            </p>

            <div class="divider"></div>
            <p>
                <label>服务端返回code：</label>
                <input type="text" name="serviceResultCode" value="${serviceSwitch.serviceResultCode}" maxlength="5">
            </p>

            <div class="divider"></div>
            <p>
                <label>服务端返回msg：</label>
                <input type="text" name="serviceResultMsg" value="${serviceSwitch.serviceResultMsg}" maxlength="100">
            </p>

            <div class="divider"></div>
            <p>
                <label>服务启动状态：</label>
                <input type="radio" name="serviceActivateStatus" value="true"
                       class="required" ${serviceSwitch.serviceActivateStatus eq true ? "checked":""}/>启用
                <input type="radio" name="serviceActivateStatus" value="false"
                       class="required" ${serviceSwitch.serviceActivateStatus eq false ? "checked":""}/>关闭
            </p>

            <div class="divider"></div>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>

